﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection;
using StyleMVVM.UnitTests.TestClasses.ValidationObjects;
using StyleMVVM.Validation;

namespace StyleMVVM.UnitTests.Validation.TestRules
{
	[Export(typeof(IFluentRuleProvider<SimpleValidationObject>))]
	public class SimpleValidationObjectRules : IFluentRuleProvider<SimpleValidationObject>
	{
		public void ProvideRules(IFluentRuleCollection<SimpleValidationObject> collection)
		{
			collection.AddRule("NameLength").Property(x => x.TestInt).GreaterThanOrEqualTo.Value(1);
		}
	}
}